package com.example.admin.startproject_404fzx.mode;

import com.example.admin.startproject_404fzx.iface.WeatherIface;
import com.example.admin.startproject_404fzx.listener.WeatherListener;

import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;
/**
 * Created by Admin on 2017/5/2.
 */

public class WeatherModel implements WeatherIface{
    private static final String BASE_URL = "http://www.weather.com.cn";
    private Retrofit retrofit;
    public WeatherModel(){
        Retrofit retrofit;
        retrofit = new Retrofit.Builder()
                .baseUrl(BASE_URL) //主机地址
                .addConverterFactory(GsonConverterFactory.create())//解析方法
                .build();
    }

    @Override
    public void getWeather(String cityNumber, WeatherListener listener) {

    }
}
}
